Data replication for �A Field Experiment at the Moscow Mayoral Elections
Journal of Experimental Political Science�

Raw data:
 - electionresults2013.txt � Moscow mayor election results in 2013
- uiks_2013.txt � matching table between metro stations, UIKs (precincts) in 2013 and UIKs 2012 (presidential election)
- metroelection_2013.txt � list of metro stations with a indicator where the newspaper was distributed
- 2012_pres_4.dta �  2012 presidential election results 

We used Stata version 14 and R 4.2.3 for the analysis.
Step 1.
Execute RawDataPrep.do
The file will produce the combined data file data_moscow_elections_Jan2024.dta for the main analysis

Step 2. 
Execute Jan2024_final_results.do
The file will produce several matrices with output Table 2, Table 3, Table 4, Table 4, Table 5a, and Table 5b. The matrices should be copied to the excel file MoscowElectionsNovember23 for formatting. The matrix should be selected in Stata output window, then right click of the mouse, then Copy Table, then Paste in the corresponded place of the excel file

Step 3.
Execute MoscowElectionsJan2024.R to produce the graphs reported in Appendix 5. The code produces Figure 1A. To produce Figure 2A one should substitute (col1==1) with (col2==1). To produce Figure 3A one should substitute (col1==1) with (col3==1). To produce Figure 4A one should substitute (col1==1) with (col4==1).
